export const optionColumn = [
	{
		label: "隐患名称",
		prop: "yhmc",
		align: "center"
	},
	{
		label: "整改标题",
		prop: "zgbt",
		align: "center"
	},
	{
		label: "整改单编号",
		prop: "zgdbh",
		align: "center",
		search: true
	},
	{
		label: "责任部门",
		prop: "fzzgbmDeptName",
		align: "center"
	},
	{
		label: "隐患级别",
		prop: "yhjb",
		align: "center",
		search: true,
		hide: true
	},
	{
		label: "要求整改完成日期",
		prop: "yqzgwcrq",
		align: "center",
		width: 130
	},
	{
		label: "现场照片",
		prop: "xczp",
		align: "center",
		slot: true,
		width: 100,
		viewDisplay: false
	},
	{
		label: "整改结果",
		prop: "zgjg",
		align: "center"
	},
	{
		label: "审核状态",
		prop: "sftg",
		align: "center",
		width: 100,
		type: "select",
		dicData: [{
			label: "待审核",
			value: 1
		}, {
			label: "审核通过",
			value: 2
		}, {
			label: "审核不通过",
			value: 3
		}]
	},
	{
		label: "整改设置",
		prop: "improveSetting",
		align: "center",
		slot: true,
		width: 120,
		viewDisplay: false
	},
	{
		label: "审核",
		prop: "examine",
		align: "center",
		slot: true,
		width: 100,
		viewDisplay: false
	}
]

export const updateOptionColumn = [
	{
		label: "整改标题",
		prop: "zgbt",
		disabled: false,
		rules: [{
			required: true,
			message: "请输入整改标题",
			trigger: "blur"
		}]
	},
	{
		label: "整改对象",
		prop: "zgdx",
		disabled: false,
		type: "tree",
		dicData: [],
		props: {
			label: "title"
		},
		rules: [{
			required: true,
			message: "请选择整改对象",
			trigger: "change"
		}]
	},
	{
		label: "不合格因素",
		prop: "bhgys",
		disabled: false,
	},
	{
		label: "专业分类",
		prop: "zyfl",
		disabled: false,
		type: "select",
		dicUrl: "/api/blade-system/dict-biz/dictionary?code=rectification_classification",
		props: {
			label: "dictValue",
			value: "dictKey",
		},
		rules: [{
			required: true,
			message: "请输入专业分类",
			trigger: "blur"
		}]
	},
	{
		label: "整改巡检人",
		prop: "zgxjr",
		disabled: false,
		type: "select",
		dicUrl: "/api/riskPoint/riskmanagement/getInternalStaff",
		props: {
			label: "realName",
			value: "id",
		},
		rules: [{
			required: true,
			message: "请选择整改巡检人",
			trigger: "change"
		}]
	},
	{
		label: "人物管理分类",
		prop: "rwglfl",
		disabled: false,
		type: "select",
		dicUrl: "/api/blade-system/dict-biz/dictionary?code=rectification_person_thing",
		props: {
			label: "dictValue",
			value: "dictKey",
		}
	},
	{
		label: "要求整改日期",
		prop: "yqzgwcrq",
		disabled: false,
		type: "date",
		format: "yyyy-MM-dd",
		valueFormat: "yyyy-MM-dd",
		rules: [{
			required: true,
			message: "请选择要求整改完成日期",
			trigger: "change"
		}]
	},
	{
		label: "发生环节",
		prop: "fshj",
		disabled: false,
		type: "select",
		dicUrl: "/api/blade-system/dict-biz/dictionary?code=occurrence_link",
		props: {
			label: "dictValue",
			value: "dictKey",
		}
	},
	{
		label: "整改审核人",
		prop: "zgshren",
		disabled: false,
		type: "select",
		dicUrl: "/api/riskPoint/riskmanagement/getInternalStaff",
		props: {
			label: "realName",
			value: "id",
		},
		rules: [{
			required: true,
			message: "请选择整改审核人",
			trigger: "change"
		}]
	},
	{
		label: "是否通过",
		prop: "sftg",
		display: false,
		type: "radio",
		dicData: [{
			label: "通过",
			value: 2
		}, {
			label: "不通过",
			value: 3
		}],
		rules: [{
			required: true,
			message: "请选择是否通过",
			trigger: "change"
		}]
	},
	{
		label: "审核意见",
		prop: "spyj",
		display: false,
		span: 24,
		type: "textarea",
		maxLength: 250
	}
]